package com.woniu.order.service;

import com.woniu.order.infra.model.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.order.service.dto.CommentDto;
import com.woniu.order.service.param.AddCommentServiceParam;
import com.woniu.order.service.param.AdditionalCommentServiceParam;

import java.util.List;

/**
 * <p>
 * 评价表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
public interface CommentService extends IService<Comment> {

    List<CommentDto> searchCommentsByUserId(Integer userId);

    List<CommentDto> searchCommentsByProductId(Integer productId);

    Boolean addComment(AddCommentServiceParam addCommentServiceParam);

    Boolean addAdditionalComment(AdditionalCommentServiceParam additionalCommentServiceParam);



}
